package com.coincalf.framework.dto;


import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 交易信息
 */
@Data
@Accessors(chain = true)
public class TransInfoDTO implements Serializable {
    private static final long serialVersionUID = 5144197727043048189L;

    private String coinName;

    private String fromAddress;
    private String toAddress;
    private BigDecimal amount;
    private BigDecimal fee;                     //矿工费
    private String txHash;
    private Long blockNumber;
    private Long confirmations;
    private String remark;                      //交易备注, eos
    private String privateKey;                  //用于签名的私钥

    private Long nonce;
    private String contractAddress;

    private Integer status;                     //交易状态 1：成功  2：失败  3：待确认
    private String errMsg;

}
